package com.example.exp6_4;

public class Chain6_4 {
    private int element;
    private Chain6_4 next;

    public Chain6_4(int element) {
        this.element = element;
        this.next = null;
    }

    public int getElement() {
        return element;
    }

    public void setElement(int element) {
        this.element = element;
    }

    public Chain6_4 getNext() {
        return next;
    }

    public void setNext(Chain6_4 next) {
        this.next = next;
    }

    @Override
    public String toString() {
        return ""+this.getElement();
    }
}
